<?php
//产品列表控制器
namespace frontend\controllers;
use Yii;
use yii\web\controller;

class ProductController extends Controller{
    //商品列表
    public function actionIndex(){
        $this->layout="layout1";
        return $this->render('index');
    }
    //商品详情
    public function actionDetail(){
        $this->layout="layout1";
        return $this->render('detail');
    }
}